import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

import axios from 'axios'
import api from '@/http/api'
Vue.prototype.$http = axios;
Vue.prototype.$api = api;

//全局引入icon
import '@/icons' // icon


// 全局引入jquery
import $ from 'jquery';

// 引入animate.css
import  '../public/animate.min.css';

/**
 * Description:引入 Echarts
 * Author:ybt
 * Date:2020/12/16
 */
import echarts from 'echarts'
Vue.prototype.$echarts = echarts;

/**
 * Description:引入图片放大插件viewer
 * Author:ybt
 * Date:2020/12/16
 */
import Viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'
Vue.use(Viewer);
Viewer.setDefaults({
    Options: { "inline": true, "button": true, "navbar": true, "title": true, "toolbar": true, "tooltip": true,
        "movable": true, "zoomable": true, "rotatable": true, "scalable": true, "transition": true, "fullscreen": true,
        "keyboard": true, "url": "data-source" }
});

/**
 * Description:引入swiper样式文件
 * Author:ybt
 * Date:2020/12/16
 */
import 'swiper/swiper.less'

// 引入flexible.js rem适配
import './assets/js/flexible'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI)


Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
